define(["jquery", "easy-admin", "vue"], function ($, ea, Vue) {

    var form = layui.form;

    var Controller = {
        index: function () {
            form.on("radio(upload_type)", function (data) {
                switch (this.value){
                    case 'local':
                        $(".layui-form-item.alioss,.layui-form-item.txcos").hide();
                }
                upload_type = this.value;
            });
            ea.listen();
        }
    };
    return Controller;
});